package com.yenroc.ho;

import com.yenroc.ho.netty.NettyClient;
import org.springframework.beans.factory.InitializingBean;
import org.springframework.stereotype.Component;

/**
 * @author： heyanpeng
 * @date： 2021/7/28
 */
@Component
public class NettyClinetConfig implements InitializingBean {
    @Override
    public void afterPropertiesSet() throws Exception {
        NettyClient client = new NettyClient();
        client.start("localhost", 9999);
    }
}
